<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>DOM操作CSS</title>
     <style>
         .box{
             width: 300px;
             height: 300px;
             background-color: aqua;
         }
     </style>
</head>
<body>
    <div id="box1" class="box"></div>

    <button id="transfer">调整</button>


    <script>

      let btn =   document.getElementById("transfer");
      let box =   document.getElementById("box1");

      btn.onclick = function(){
          console.log(1);
          box.style.width = "500px";
          box.style.height = "500px";
      }

    </script>
</body>
</html>